﻿<src:DisplayObjectImpl x:Class="AgilePlannerDT.Display.Impl.FloatingToolBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:AgilePlannerDT.Display.Impl"
    xmlns:cw="clr-namespace:AgilePlannerDT.Display.CustomWidgets"
    Height="225" Width="225">

    <Border CornerRadius="200" Style="{DynamicResource GradientBlackToGrayBorder}" BorderBrush="Black" BorderThickness="1" Name ="OutSideBorder">
        <Canvas Name="canvas" Width="225" Height="225">
            <Grid Name="grid" Width="225" Height="225">
                <cw:TranslateOnlyArea x:Name="translateOnlyArea" IsHitTestVisible="False" Grid.Column="1" />
                <Button Height="30" Style="{DynamicResource GlassButton}" Name="joinMenuButton" VerticalAlignment="Center" Foreground="White" HorizontalAlignment="Center"  Margin="0,0,0,60" Width="75" FontSize="8">Join meeting</Button>
                <Button Style="{DynamicResource GlassButton}" Name="voteButton" Foreground="White" Margin="75,102,75,103" FontSize="8">Vote</Button>
                <Button Height="30"  Style="{DynamicResource GlassButton}" VerticalAlignment="Center" HorizontalAlignment="Center"  Name="exitButton" Margin="0,60,0,0" Foreground="White" Width ="75" FontSize="8" Content="Exit"/>

                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="minimizeButton" HorizontalAlignment="Right" VerticalAlignment="Top" Margin ="0,77.5,190,0"  FontSize="7">Minimize</Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="synchButton" HorizontalAlignment="Right" VerticalAlignment="Top" Margin ="0,117.5,190,0"  FontSize="7">Synch</Button>
                <Button Height="32.5" Width="32.5" Style="{DynamicResource ColorPaletteButton}" Name="helpButton" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize ="7" Margin="20,42.5,22.5,0">Help</Button>
                <Button Height="32.5" Width="32.5" Style="{DynamicResource ColorPaletteButton}" Name="aquaButton" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="55,15,0,0"></Button>
                <Button Height="32.5" Width="32.5" Style="{DynamicResource ColorPaletteButton}" Name="blueButton" VerticalAlignment="Top" Margin="0,5" ></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="grayButton" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,15,55,0"></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="greenButton" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,42.5,22.5,0"></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="khakiButton" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,77.5,7.5,0"></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="peachButton" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,7.5,75.5"></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="pinkButton" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,22.5,42.5"></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="redButton" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,55,15"></Button>
                <Button Height="32.5" Width="32.5" Style="{DynamicResource ColorPaletteButton}" Name="whiteButton" VerticalAlignment="Bottom" Margin="0,5"></Button>
                <Button Height="32.5" Width="32.5" Style="{DynamicResource ColorPaletteButton}" Name="yellowButton" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="55,0,0,17.5"></Button>
                <Button Width="32.5" Height="32.5" Style="{DynamicResource ColorPaletteButton}" Name="colorButton" HorizontalAlignment="Right" VerticalAlignment="Top" Margin ="10,157.5,170,0"  FontSize="7">Config</Button>
                
                
                    
                    <Button Style="{DynamicResource InvisibleButton}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,8,26.8,0" Name="pin" Height="29.5" Width="27.2">
                <Image Source="/Resources/Images/pins/pin_red.png" Stretch="Fill" Height="28" Width="26.8" HorizontalAlignment="Right"  VerticalAlignment="Top" /></Button>
            </Grid>
            <Border CornerRadius="15" Style="{DynamicResource GradientBlackToGrayBorder}" Margin="250,50" >
                <Grid Name="joinGrid" Height="124" Width="220">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="15"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150" />
                        <ColumnDefinition Width="75" />
                    </Grid.ColumnDefinitions>

                    <ComboBox Grid.Row="1" Grid.Column="0" Name="serverUriComboBox" Margin="10,3" VerticalContentAlignment="Center" FontSize="10" IsEditable="True"/>
                    <Button Grid.Row="1" Grid.Column="1" Name="connectButton" Margin="10,3" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8">Connect</Button>

                    <ComboBox Grid.Row="2" Grid.Column="0" Name="projectsAvailableComboBox" Margin="10,3" IsEditable="True" FontSize="10" />
                    <Button Grid.Row="2" Grid.Column="1" Name="refreshButton" Margin="10,3" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8" IsEnabled="False">Refresh</Button>

                    <Button Grid.Row="3" Grid.ColumnSpan="2" Name="joinButton" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" Margin="10,3" FontSize="8" IsEnabled="False">Join meeting</Button>
                                        
                    <Border Margin="10,3,10,6" CornerRadius="10" Background="Transparent" Grid.Row="4" Grid.ColumnSpan="2" BorderBrush="DarkGray" BorderThickness="2">
                        <StatusBar Name="statusBar" Width="190" Background="Transparent" IsHitTestVisible="False" FontSize="8" Margin="0,0">
                            <StatusBarItem>
                                <TextBlock Name="statusString" Text="" FontSize="10" TextWrapping="Wrap"/>
                            </StatusBarItem>
                        </StatusBar>
                    </Border>
                </Grid>
            </Border>

            <Border CornerRadius="15" Style="{DynamicResource GradientBlackToGrayBorder}" Margin="21,100" >
                <Grid Name="voteDialog">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60" />
                        <ColumnDefinition Width="60" />
                        <ColumnDefinition Width="60" />
                    </Grid.ColumnDefinitions>
                    <Button Grid.Row="1" Grid.Column="0" Name="startVotingButton" Margin="5,0" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8">Start Voting</Button>
                    <Button Grid.Row="1" Grid.Column="1" Name="stopVotingButton" Margin="5,0" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8">Stop Voting</Button>
                    <Button Grid.Row="1" Grid.Column="2" Name="clearVotingButton" Margin="5,0" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8">Clear Voting</Button>
                </Grid>
            </Border>

            <Border CornerRadius="15" Style="{DynamicResource GradientBlackToGrayBorder}" Margin="35,120" >
                <Grid Name="exitDialog">
                        <Grid.RowDefinitions>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="75" />
                        <ColumnDefinition Width="75" />
                    </Grid.ColumnDefinitions>
                    <Label Name="exitDialogLabel" Margin="10,3" HorizontalAlignment="Center" Foreground="#FFFFFFFF" FontSize="8" Grid.ColumnSpan="2">Really quit?</Label>
                    <Button Grid.Row="1" Grid.Column="1" Name="exitCancelButton" Margin="10,3" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8" Content="No"/>
                    <Button Grid.Row="1" Grid.Column="0" Name="exitConfirmButton" Margin="10,3" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8" Content="Yes" />
                </Grid>
            </Border>
            <!-- synchronize box for Jazz -->
                <Border CornerRadius="15" Style="{DynamicResource GradientBlackToGrayBorder}" Margin="0,240" Canvas.Left="-264" Canvas.Top="-237">
                <Grid Name="synchGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="15"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="20"/>
                        <RowDefinition Height="7.5"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="66.5" />
                        <ColumnDefinition Width="158.5" />
                    </Grid.ColumnDefinitions>

                    <TextBlock Grid.Row="1" Name="serverType" Margin="10,3,0,3" FontSize="10" Foreground="white"> Server:</TextBlock>
                    <ComboBox Grid.Row="1" Grid.Column="1" Name="serverComboBox"  Margin="0,0,68.5,3" VerticalContentAlignment="Center" FontSize="10" IsEditable="False"/>
                    
                    <TextBlock Grid.Row="2" Name="urlLable" Margin="10,3,0,3" FontSize="10" Foreground="white"> URL:</TextBlock>
                    <TextBox Grid.Row="2" Grid.Column="1" Name="urlTextBox"  FontSize="10" Margin="0,3,15,3.5" />

                    <TextBlock Grid.Row="3" Name="userNameLable" Margin="10,3,0,3" FontSize="10" Foreground="white"> User Name:</TextBlock>
                    <TextBox Grid.Row="3" Grid.Column="1" Name="userNameTextBox"   FontSize="10" Margin="0,3,15,3.5" />

                    <TextBlock Grid.Row="4" Name="passwordNameLable" Margin="10,3,0,3" FontSize="10" Foreground="white"> Password:</TextBlock>
                    <PasswordBox Grid.Row="4" Grid.Column="1" Name="passwordTextBox"   FontSize="10" Margin="0,3,15,3.5" PasswordChar="*"/>

                    <TextBlock Grid.Row="5" Name="priorityLable" Margin="10,3,0,3" FontSize="10" Foreground="white"> Priority:</TextBlock>
                    <ComboBox Grid.Row="5" Grid.Column="1" Name="priorityComboBox"  Margin="0,0,68.5,3" VerticalContentAlignment="Center" FontSize="10" IsEditable="False"/>

                    <Button Grid.Row="6"  Name="restoreButton" Margin="62,5,39,0" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8" Grid.Column="1">Restore Project</Button>
                    <Button Grid.Row="6"  Name="okButton" Margin="35,5,0,0" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8" HorizontalAlignment="Left" Width="55" Grid.ColumnSpan="2">Synchronize</Button>
                    <Border  Grid.Row="7" Margin="15,3" CornerRadius="10" Background="Transparent"  Grid.ColumnSpan="2" BorderBrush="DarkGray" BorderThickness="2">
                        <StatusBar Name="synchBar" Width="375" Height="16.422" Background="Transparent" IsHitTestVisible="False" FontSize="8" Margin="0,-5" />
                    </Border>
                </Grid>
            </Border>
           <!-- legend box-->
            <TabControl Background="White"  Margin="40,240" Width="150" Height="350" Name="ConfigTab">
                <TabItem Header="Legend">
                    <Border CornerRadius="15" Style="{DynamicResource GradientBlackToGrayBorder}"  >
                <Grid Name="colorGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="15"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="10"/>
                        <RowDefinition Height="25"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="70" />
                        <ColumnDefinition Width="70" />
                    </Grid.ColumnDefinitions>
                    <TextBox Grid.Row="1" Grid.Column="0" Name="RedTextBox"  FontSize="10" Grid.ColumnSpan="2"  IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="2" Grid.Column="0" Name="AquaTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="3" Grid.Column="0" Name="BlueTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="4" Grid.Column="0" Name="GrayTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="5" Grid.Column="0" Name="GreenTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="6" Grid.Column="0" Name="KhakiTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="7" Grid.Column="0" Name="PeachTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="8" Grid.Column="0" Name="PinkTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="9" Grid.Column="0" Name="WhiteTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <TextBox Grid.Row="10" Grid.Column="0" Name="YellowTextBox"  FontSize="10" Grid.ColumnSpan="2" IsEnabled="false" Margin="10,3,10,3" />
                    <Button Grid.Row="12"  Name="ColorBoxSaveButton"  Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8" IsEnabled="false" Margin="10,0,13.5,0">Save</Button>
                <Button Grid.Row="12"  Name="ColorBoxExitButton" Style="{DynamicResource GlassButton}" Foreground="#FFFFFFFF" FontSize="8"  Grid.Column="1" Margin="15,0,14,0">Exit</Button>
                </Grid>
            </Border>
                </TabItem>
                <TabItem Header="User Name">
                    <Border CornerRadius="15" >
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="100"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <GroupBox Header="Add User" Name="groupBox1">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="0.5*"></RowDefinition>
                                        <RowDefinition Height="0.5*"></RowDefinition>
                                    </Grid.RowDefinitions>
                                    <TextBox  Name="addUserTextBox"  />
                                    <Button Grid.Row="1" Name="addUserButton" >Add User</Button>
                                </Grid>
                            </GroupBox>
                            <GroupBox Grid.Row="1" Header="Remove User"  Name="groupBox2" >
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="160"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <ListBox Name="removeUserListBox" />
                                    <Button Grid.Row="1" Name="removeUserButton">Remove User</Button>
                                </Grid>
                            </GroupBox>

                        </Grid>


                    </Border>


                </TabItem>
            </TabControl>
        </Canvas>
    </Border>
    
    

</src:DisplayObjectImpl>
